package mmoon.mmoonstory;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.NonNullList;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class MMoonCreativeTab extends CreativeTabs {
    public MMoonCreativeTab(String label) {
        super(label);
    }

    @Override
    @SideOnly(Side.CLIENT)
    public ItemStack createIcon() {
        return new ItemStack(MMoonAll.HELLO_WORLD);
    }

    @Override
    @SideOnly(Side.CLIENT)
    public void displayAllRelevantItems(NonNullList<ItemStack> list) {
        for (Item item : MMoonAll.MMOON_ITEMS) {
            item.getSubItems(this, list);
        }
    }

    @Override
    public boolean hasSearchBar() {
        return false;
    }

    @Override
    public int getLabelColor() {
        return 0xFFFF;
    }
}
